package com.spring.study.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


@Slf4j
@Controller
@RequestMapping(value = "views")
public class Views {

    @RequestMapping(value = "/hello")
    public String hello(){
        log.info("进入首页");
        return "hello";
    }

    @RequestMapping(value = "/admin")
    public String admin(){
        log.info("进入首页");
        return "admin";
    }
}
